/**
 * @LogTest.as
 * 
 * @author sodaChen mail:asframe@qq.com
 * @version 1.0
 * <br>Copyright (C), 2010-2015 asFrame.com
 * <br>This program is protected by copyright laws.
 * <br>Program Name:ASFrame
 * <br>Date:2016-4-28
 */
package
{
	import com.asframe.collections.maps.HashMap;
	import com.asframe.log.Log;
	import com.asframe.log.console.LogConsole;
	import com.asframe.log.format.ObjectFormat;
	
	import flash.display.Sprite;
	import flash.utils.Dictionary;
	
	/**
	 * 日志系统测试
	 * @author sodaChen
	 * Date:2016-4-28
	 */
	public class LogTest extends Sprite
	{
		public function LogTest()
		{
			var logConsole:LogConsole = new LogConsole();
			var objectFormat:ObjectFormat = new ObjectFormat();
			logConsole.addObjectFormat(Object,objectFormat);
			logConsole.addObjectFormat(Dictionary,objectFormat);
			logConsole.addObjectFormat(HashMap,objectFormat);
			//初始化日志系统
			Log.logConsole = logConsole;
			
			var obj:Object = new Object();
			obj.name = "soda";
			obj.age = 18;
			
			var dic:Dictionary = new Dictionary();
			dic.name = "sodaChen";
			dic.age = 28;
			
			var map:HashMap = new HashMap();
			map.put("name","sodaC");
			map.put("age","30");
			map.put("array",[555,"soda"]);
			
			var vector:Vector.<int> = new Vector.<int>();
			vector.push(1);
			vector.push(2);
			vector.push(3);
			
//			var vector2:Vector = new Vector();
//			vector.push(1);
//			vector.push("2");
//			vector.push(3);
			
			Log.debug(this,1,"soda");
			Log.debug(this,[1,"sdsss",10.0,0xffcc00]);
			Log.info(this,vector);
			Log.info(this,obj);
//			Log.info(this,vector2);
			Log.error(this,map);
		}
	}
}